﻿using GDM.Hogar.Controles.Validador.Diseño;
using System;
using System.ComponentModel;
using System.Drawing.Design;

namespace GDM.Hogar.Controles.Validador.Componentes
{
    /// <summary>
    /// ValidationMode, can use FocusChange and Submit combination.
    /// </summary>
    [Flags]
    [Editor(typeof(FlagsEditor), typeof(UITypeEditor))]
    public enum ValidationMode
    {
        /// <summary>
        /// None.
        /// </summary>
        None = 0x0000,

        /// <summary>
        /// Allow focus change to next control
        /// </summary>
        FocusChange = 0x0001,

        /// <summary>
        /// Validate controls when user click "OK" or "Yes" button.
        /// </summary>
        Submit = 0x0002,
    }
}